-- GENERATED SPELL FOR [Anub'ar Dreadweaver] --


function spell0_26413(pUnit, Event) --@Corruption,n/a--
pUnit:FullCastSpellOnTarget(32063,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26413', 26000, 1)
end

function spell1_26413(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(9613,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26413', 3000, 1)
end

function Sorts_26413(pUnit, Event)
local choix_sorts_26413 = math.random(0, 1)
if choix_sorts_26413 == 0 then
pUnit:RegisterEvent('spell0_26413', 1, 1)
end
if choix_sorts_26413 == 1 then
pUnit:RegisterEvent('spell1_26413', 1, 1)
end
end

function mob26413_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26413', math.random(1500, 3000), 1)
end

function mob26413_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26413_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26413_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26413, 1, 'mob26413_Action')
RegisterUnitEvent(26413, 2, 'mob26413_Leave')
RegisterUnitEvent(26413, 3, 'mob26413_Kill')
RegisterUnitEvent(26413, 4, 'mob26413_Die')
